package ua.at.javac.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table (name="city")
public class City implements Serializable {

	private static final long serialVersionUID = 1L;
	
	City(){
	}
	@Id
	@Column (name="city_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	@Column(name="city")
	private String city;
	
	@OneToMany(mappedBy="city")
	private Set<Site> site;
}